# -*- coding: utf-8 -*-
# @Time    : 2021/11/19 9:51
# @Author  : TangDagui
# @Email   : 3297364807@qq.com
# @File    : PythonTwo.py
# @Software: PyCharm

import turtle
import random

turtle.speed(100)  # 画笔速度
turtle.pencolor("black")  # 画笔颜色
mRandColor = list({"red", "yellow", "black", "green"})

n = random.randint(0, 3)  # 随机产生0-3的数
# 绘制花瓣
def DrawPetals():
    for i in range(4):

        turtle.fillcolor(mRandColor[n])  # 取出随机颜色
        turtle.begin_fill()  # 开始填充
        turtle.seth(90 * (i + 1))
        turtle.circle(200, 90)
        turtle.seth(-90 + i * 90)
        turtle.circle(200, 90)
        turtle.end_fill()  # 结束填充
    turtle.done()
    pass


if __name__ == '__main__':
    DrawPetals()
